home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_08_09
/
8n09121a
< prev
next >
Wrap
Text File
|
1990-07-07
|
619b
|
30 lines
class Queue { // queue of integers
public:
// initialize the queue to empty
Queue();
// returns TRUE if the queue is empty, else FALSE
Truth isempty();
// returns TRUE if queue is full, else FALSE
True isfull();
// deletes and returns value at head of queue
// precondition: !isempty()
int gethead();
// make x the new head of the queue
void puthead( int x);
// delete and return the last element in the queue
// precondition: !isempty()
int gettail();
// make x the last element in the queue
void puttail( int x);
private:
...
};